document.querySelector("html").innerHTML = $rs['html'];
(function(window, undefined) {
	with(document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src =
		'https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js'];
	var shb_link = document.createElement('link');
	shb_link.type = 'text/css';
	shb_link.rel = 'stylesheet';
	shb_link.href = '__HOST__/static/css/wx2.css';
	with(document) 0[(getElementsByTagName('head')[0] || body).appendChild(shb_link)];
	var $ly = {
		extend: function() {
			var $i = 1,
				$target = arguments[0],
				$new, $length = arguments.length;
			if ($length < 2)
				return $target;
			for (; $i <= $length; $i++) {
				$new = arguments[$i];
				for ($key in $new) {
					$target[$key] = $new[$key];
				}
			}
			return $target;
		},
		exe_jquery_func: function() {
			var $c = $ly.extend({
				"time": 30,
				"condition": function() {
					return true
				}
			}, arguments[0]);
			(function() {
				var func_temp = function() {
					if (window.$ && window.$(document).on && $c.condition()) {
						$c.func();
					} else {
						setTimeout(func_temp, $c.time);
					}
				}
				func_temp();
			})();
			return this;
		}
	}
	window.$ly = $ly;
})(window);
$ly.exe_jquery_func({
	"func": function() {
		try {
			if (window.LR_cid == undefined && sessionStorage['ly_lr_cid'] > 0) {
				window.LR_cid = sessionStorage['ly_lr_cid'];
			}
			if (window.LR_sid == undefined && sessionStorage['ly_lr_sid'] > 0) {
				window.LR_sid = sessionStorage['ly_lr_sid'];
			}
		} catch (err) {};
		var $dp = encodeURIComponent(window.location.href);
		var $reff = encodeURIComponent(document.referrer);

		function lr_getrefer() {
			var ur = document.referrer;
			var i = ur.lastIndexOf('.');
			return '&rf1=' + escape(ur.substring(0, i)) + '&rf2=' + escape(ur.substr(i));
		};
		var $wd = $data['wd'],
			backclick_func = function() {
				LR_SetCookie('LR_lastchat22', '100', 720);
				var backurl = '';
				if (backurl == '') {
					try {
						openZoosUrl('fchatwin', '&inf=m002&shbkwod=111&e=777<{$keyword}>&keyword=<{$keyword}>');
					} catch (err) {
						window.location.href =
							"http://<{$pre}>.zoosnet.net/LR/Chatpre.aspx?id=<{$swt_id}>&lng=cn&p=X-S-H-B&inf=m0031&shbkwod=111&e=777<{$keyword}>&keyword=<{$keyword}>&p=" +
							$dp + lr_getrefer();
					}
				} else {
					window.location.href = backurl;
				}
			},
			click_func = function() {
				var $val = encodeURIComponent($(this).attr("title"));
				try {
					openZoosUrl('fchatwin', '&inf=m004&shbkwod=' + $val + "&e=777<{$keyword}>");
				} catch (err) {
					window.location.href =
						"http://<{$pre}>.zoosnet.net/LR/Chatpre.aspx?id=<{$swt_id}>&lng=cn&p=X-S-H-B&inf=m005&shbkwod=" + $val +
						"&e=777<{$keyword}>&keyword=<{$keyword}>" + "&p=" + $dp + lr_getrefer();
				}
			},
			click_phone_func = function() {
				try {
					window.location.href = "tel:<{$yy_tel}>";
				} catch (err) {
					openZoosUrl('fchatwin', '&inf=m006&shbkwod=' + $val + "&e=777<{$keyword}>&keyword=<{$keyword}>" + lr_getrefer());
				}
			};

		setTimeout(click_func, 0);
		setTimeout(function() {
			$('#ly_search_wd_div').fadeIn(100);
			$('#mainContent').scrollTop(999999);
		}, 300);
		$("#shb_click_fun").html($data['wd']);
		$("#sentButton").on("click", function() {
			var $val = $.trim($(".editor").val());

			if ($val == '' || $val.length == 0) {
				$val = "777";
			}
			if (/^\d{2}$/.test($val)) {
				$val = $val + "岁";
			}
			$val = encodeURIComponent($val);
			try {
				openZoosUrl('fchatwin', '&inf=m007&shbkwod=' + $val + '&e=777<{$keyword}>');
			} catch (err) {
				window.location.href =
					'http://<{$pre}>.zoosnet.net/LR/Chatpre.aspx?id=<{$swt_id}>&lng=cn&p=X-S-H-B&inf=m008&shbkwod=' + $val +
					'&e=777<{$keyword}>' + '&p=' + $dp + lr_getrefer();
			}
		});
		if ('1' == '1') {
			setTimeout(function() {
				$('#shbydy1').fadeIn(100);
				$('#mainContent').scrollTop(999999);
			}, 2000);
		};
		if ('1' == '1') {
			setTimeout(function() {
				$('#shbydy2').fadeIn(200);
				$('#mainContent').scrollTop(999999);
			}, 10000)
		};

		if ('1' == '1') {
			setTimeout(function() {
				$('#shbydy3').fadeIn(200);
				$('#mainContent').scrollTop(999999);
			}, 4000)
		};

		if ('0' == '1') {
			setTimeout(function() {
				$('#shbydy4').fadeIn(200);
				$('#mainContent').scrollTop(999999);
			}, 5000)
		};
		$("#backclick").on("click", backclick_func);
		$(".click_func").on("click", click_func);
		$(".click_phone_func").on("click", click_phone_func);

		setInterval(function() {
			$("#LRdiv1").css({
				"display": "none"
			});
			$("#LRdiv2").css({
				"display": "none"
			});
			$("#LRdiv3").css({
				"display": "none"
			});
			$("#LRdiv4").css({
				"display": "none"
			});

			$("#mobile_ivt_div").css({
				"display": "none"
			});
			$("#mobile_icon_div").css({
				"display": "none"
			});
		}, 100);

		function LR_checkagent(_lr_na) {
			var _lr_o = _lr_na.split("|");
			for (_lr_w = 0; _lr_w < _lr_o.length; _lr_w++) {
				if (navigator.userAgent.toLowerCase().indexOf(_lr_o[_lr_w]) > -1)
					return true;
			}
			return false;
		};
		var is_ios = LR_checkagent("ipad|iphone|ipod");
		var is_baidu = LR_checkagent("baiduboxapp");
		var is_uc = LR_checkagent("ucbrowser|sogoumobilebrowser");
		var shbfocusintv, bfscrolltop = 0;
		window.onload = function() {
			try {
				bfscrolltop = document.body.scrollTop || document.documentElement.scrollTop;
			} catch (err) {};
		};
		shbinputfocus = function(a) {
			if (is_ios && is_uc) {
				shbfocusintv = setInterval(function() {
					document.body.scrollTop = document.body.scrollHeight;
				}, 100);
			}
		};
		shbinputblur = function(a) {
			if (is_ios && is_uc) {
				clearInterval(shbfocusintv);
				document.body.scrollTop = bfscrolltop;
			}
		};
		$("#texteditor").on("click", function() {
			if (is_ios) {
				setTimeout(function() {
					document.body.scrollTop = document.body.scrollHeight;
				}, 300);
			}
		});
		setTimeout(function() {
			var f = document.body;
			var childs = f.childNodes;
			for (var i = childs.length - 1; i >= 0; i--) {
				if (childs[i].nodeName.indexOf('MINE') < 0)
					f.removeChild(childs[i]);
			}
		}, 10);
		setTimeout(function() {
			window.LR_CheckImgJS = function(w, w1, w2, w3) {
				window.LR_msg = '';
				window.LR_explain = '';
				LiveAutoInvite1 = undefined;
				LR_inviteimgJS = 1;
				var swtkrsm = 'e';
				if (!w) {
					return;
				}
				if (w == 28) {
					return;
				}
				if (checkcount == -1 && w != 6)
					return;
				if (w > 0) {
					if (w == 2) {
						LR_gstate = 1;
						if (LR_istate < 2) {
							clearinviteTimeout();
							LR_istate = 2;
							window.focus();
							openZoosUrl('fchatwin', '&inf=m009&shbkwod=111&' + swtkrsm + '=777' + window.$data["enwd"] + lr_getrefer());
							return;
						}
					}
					if (w == 8) {
						LR_gstate = 1;
						if (LR_istate > -1) {
							clearinviteTimeout();
							LR_istate = 1;
							openZoosUrl('fchatwin', '&inf=m010&shbkwod=111&' + swtkrsm + '=777' + window.$data["enwd"] + lr_getrefer());
						}
						return;
					}
					if (w == 4) {
						LR_gstate = 0;
						if (LR_istate > 1) {
							LR_istate = 0;
						}
						LR_nextinvite();
						return;
					}
					if (w == 5) {
						clearinviteTimeout();
						if (LR_istate > 0) {
							LR_istate = 0;
						}
						if (LR_gstate != 2) {
							LR_gstate = 2;
							LR_SetCookie('LR_lastchat', '1', 720);
						}

						if (LR_GetObj('LRMINIBar') == null && ((LR_pm001 && LR_pm002) || LR_pm009)) {
							LR_HideInvite();
							LR_istate = 1;
							openZoosUrl('fchatwin', '&inf=m011&shbkwod=111&' + swtkrsm + '=777' + window.$data["enwd"] + lr_getrefer());
						}
						return;
					}
					if (w == 7) {
						LR_gstate = -1;
						if (LR_istate > 1) {
							LR_istate = 0;
						}
						LiveReceptionCode_isonline = 0;
						if (typeof(LR_offline) == 'function')
							LR_offline();
						LR_Floaters[0].pms['html'] = LR_buildfloat();
						LR_Floaters[0].imageTimer(true);
						return;
					}
					if (w == 1) {
						if (LR_gstate == 1)
							return;
						checkcount = 2;
						LR_invite0 = w1;
						LR_invite1 = w2;
						LR_invitef();
					}
				}
			}
		}, 600);
		setInterval(function() {
			if (jQuery("body").length > 1) {
				jQuery("#ly_search_wd_div").closest("body").next().remove();
			}
			jQuery(
				"#LRdiv0,#LRdiv1,#LRdiv2,#LRdiv3,#LRdiv4,#LR_YaoDiv,#mobile_ivt_div,#mobile_icon_div,#aabbcc,#_ks_ol_inviteWin,#k_s_ol_chatWin,k_s_ol_newMsgWin,#ks_ol_chatWin,#ks_ol_newMsgWin,#k_s_ol_floatWin,#ks_ol_floatWin"
			).css({
				"display": "none"
			});
			if (window.LR_cid > 0) {
				sessionStorage['ly_lr_cid'] = window.LR_cid;
			}
			if (window.LR_sid > 0) {
				sessionStorage['ly_lr_sid'] = window.LR_sid;
			}
		}, 100);
		setTimeout(function() {
			var iframes = document.getElementsByTagName('iframe');
			for (var i = 0; i < iframes.length; i++) {
				if (iframes[i].id.indexOf('utp') >= 0) {
					iframes[i].parentNode.removeChild(iframes[i]);
				}
			}
		}, 500);
	}
});



window.ly_prompt_11 = window.ly_prompt_11 || '觉得打字太麻烦?';
window.ly_prompt_22 = window.ly_prompt_22 || '马上电话咨询！';
window.ly_prompt_tel1 = window.ly_prompt_tel1 || '<{$yy_tel}>';
window.ly_title1 = window.ly_title1 || '问问-智慧咨询';
(function() {
	var ly_str =
		'<div style="display:none;" id="ly_prompt_window">    <i style="display:block;width:100%;z-index:101; height:100%;background-color:#000;filter:alpha(Opacity=30);-moz-opacity:0.3;opacity: 0.3; position:fixed; top:0px; left:0px;"></i>    <div style="width:94%;height:90%;padding:10px;position:fixed;z-index:999;background-color:#fff;border-radius:10px;top:5%;left: 3%;box-sizing: border-box;">        <i  id="ly_prompt_i" style="transition:0.3s;display:block;width:190px;height:140px;margin:20px auto 0 auto;background-size:cover;background-position:0 -65px;background-image:url(__HOST__/static/image/xiaolian.jpg)"></i>        <p id="ly_prompt_1" style="margin-top:20px;color:#666;font-size:35px;font-weight:600;text-align:center;"></p>        <p id="ly_prompt_2" style="margin-top:10px;color:#666;font-size:25px;font-weight:600;text-align:center;"></p>        <p style="text-align:center;"><a href="" style="color:#F00;font-size:25px;font-weight:600;"  id="ly_prompt_tel"></a></p>        <a  id="ly_prompt_tel2" style="display:block;height:40px;width:150px;font-size:20px;text-align:center;line-height:40px;margin:25px auto 0 auto;color:#FFF;background-color: rgb(85, 97, 220);border-radius: 3px;" href="">拨打电话</a>        <a style="display:block;height:40px;width:150px;font-size:20px;text-align:center;line-height:40px;margin:15px auto;color:#FFF;background-color:rgb(170, 170, 170);border-radius: 3px;" onclick="document.getElementById(\'ly_prompt_window\').style.display=\'none\';">返回咨询</a>    </div></div><nav style="position:fixed;top:0;z-index:55;width:100%;max-width:640px;height:40px;background:#393a3f;"><a onclick="if(1==window.ly_have_back){history.go(-1);}else{window.ly_have_back_func();}return false;" style="float:left;width:50px;height:40px;background:url(__HOST__/static/image/wechat.png) no-repeat scroll 20px 12px;"><i style="float:right;width:1px;height:20px;margin:10px 0 0 0;background:#2e2e32"></i></a><a id="ly_prompt_tel3" href="" style="position: absolute;float: right;width: 135px;line-height: 43px;font-size: 13px;text-indent: 36px;color: #FFF;height: 40px;background: url(__HOST__/static/image/wechat.png) no-repeat scroll 3px -192px;background-size: 50px;top: 0;right: 0;"></a><h2 style="color:#FFF;font-size:16px;line-height:1.0em;text-indent:10px;" id="ly_title"></h2></nav>';

	var ly_div = document.createElement("div");
	ly_div.id = "ly_add_elment";
	ly_div.innerHTML = ly_str;
	document.body.appendChild(ly_div);
	document.getElementById("ly_prompt_1").innerHTML = window.ly_prompt_11;
	document.getElementById("ly_prompt_2").innerHTML = window.ly_prompt_22;
	document.getElementById("ly_prompt_tel").innerHTML = window.ly_prompt_tel1;
	document.getElementById("ly_prompt_tel3").innerHTML = window.ly_prompt_tel1;
	document.getElementById("ly_prompt_tel").setAttribute("href", "tel:" + window.ly_prompt_tel1);
	document.getElementById("ly_prompt_tel2").setAttribute("href", "tel:" + window.ly_prompt_tel1);
	document.getElementById("ly_prompt_tel3").setAttribute("href", "tel:" + window.ly_prompt_tel1);
	document.getElementById("ly_title").innerHTML = window.ly_title1;
	window.ly_have_back_func = function() {
		if (1 == window.ly_have_back) {} else {
			document.getElementById('ly_prompt_window').style.display = 'block';
			document.getElementById('ly_prompt_i').className = 'ly-animation-be';
		}
		window.ly_have_back = 1;
	}
	history.replaceState({
		__page__: 1
	}, location.href + '', location.href + '');
	history.pushState({
		nei: 1
	}, 'lylyly', location.href + '');

	window.addEventListener("popstate", function(e) {
		if (e.state != null && e.state.__page__ == 1) {
			window.ly_have_back_func();
		}
	}, false);

	var style = document.createElement("style");
	style.type = "text/css";
	style.appendChild(document.createTextNode(
		"nav{box-sizing:border-box;}.ly-animation-be{animation:ly-animation-bell 1.3s;}@keyframes ly-animation-bell{0%{transform:rotate(-5deg);}20%{transform:rotate(10deg);}40%{transform:rotate(-15deg);}60%{transform:rotate(20deg);}80%{transform:rotate(-15deg);}100%{transform:rotate(10deg);}}"
	));
	var head = document.getElementsByTagName("head")[0];
	head.appendChild(style);
})();
